package com.yuanfengPlus.production.Mapper;


import com.yuanfengPlus.production.model.ProdWorkCenter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProdWorkCentersMapper {

    // 查询所有工作中心
    @Select("SELECT * FROM prod_work_centers")
    List<ProdWorkCenter> selectAll();

    // 根据工作中心ID查询工作中心
    @Select("SELECT * FROM prod_work_centers WHERE work_center_id = #{workCenterId}")
    ProdWorkCenter selectById(int workCenterId);
}
